#include<iostream>
#include<fstream>
#include<stdlib.h>
#include <cctype>
using namespace std;
int main()
{
	ifstream in("file1.txt",ios::in);
	if(!in)
	{
		cout << "无法打开输入文件" <<endl;
		exit(0);
	}
	ofstream out("file2.txt",ios::out);
	if(!out)
	{
		cout << "无法打开输出文件" <<endl;
		exit(0);
	}
	char ch;
	while(in.get(ch))
	{
		if(islower(ch))
		ch=toupper(ch);
		out.put(ch);
	}
	in.close();
    out.close();
    cout << "已转换" <<endl;
    return 0;
}